package collection;
import collection.Point;
import java.util.ArrayList;
import java.util.List;

public class SubList {
    public static void main(String[] args) {
        List<Integer> i=new ArrayList<>();
        for (int i1=0;i1<10;i1++){
            i.add(i1);
        }
        System.out.println(i);

        List<Integer> integers = i.subList(4, 9);
        System.out.println(integers);
        for (int j=0;j<integers.size();j++){
            integers.set(j,integers.get(j)*10);
        }
        System.out.println("截取集合后子集为："+integers);
        System.out.println("原集合为："+i);
        i.remove(0);
        System.out.println(i);



        List<Integer> is1 = i.subList(4, 9);
        System.out.println(is1);

    }


 }
